﻿using System.Diagnostics;
using System.Windows;

namespace WpfAppMissData
{
   public class AppliactionHelper
    {
       /// <summary>
        /// 彻底停止程序
       /// </summary>
       public static void KillApplicationSelf()
       {
           try
           {
               Process.GetCurrentProcess().Kill();
           }
           catch
           {
               Application.Current.Shutdown();
           }
       }
    }
}
